#pragma once
#include "PacketReader.h"
#include "PacketWriter.h"

struct PipeClientCtrl;
 
EXTERN_C
{ 
	typedef PipeClientCtrl *PipeClientHandle;
	TRADEAGENTCLIENTDLL_API PipeClientHandle __stdcall PipeClientInit(char* ipAddressStr, int port);
	TRADEAGENTCLIENTDLL_API void __stdcall PipeClientClose(PipeClientHandle handle);
	TRADEAGENTCLIENTDLL_API int __stdcall PipeClientGetPacket(PipeClientHandle handle, PacketReaderHandle *pack);
	TRADEAGENTCLIENTDLL_API int __stdcall PipeClientSendPacket(PipeClientHandle handle, PacketWriterHandle pack);
}
